package cn.com.weaver.services.webservices;

public class ArrayOfString  {
	private String[] string;

	public ArrayOfString() {
	}

	public String[] getString() {
		return this.string;
	}

	public void setString(String[] string) {
		this.string = string;
	}

	public String getString(int i) {
		return this.string[i];
	}

	public void setString(int i, String value) {
		this.string[i] = value;
	}

	private Object __equalsCalc = null;
	public synchronized boolean equals(Object obj) {
		if (!(obj instanceof ArrayOfString)) return false;
		ArrayOfString other = (ArrayOfString) obj;
		if (obj == null) return false;
		if (this == obj) return true;
		if (__equalsCalc != null) {
			return (__equalsCalc == obj);
		}
		__equalsCalc = obj;
		boolean _equals;
		_equals = true && 
			((this.string==null && other.getString()==null) || 
			 (this.string!=null &&
			  java.util.Arrays.equals(this.string, other.getString())));
		__equalsCalc = null;
		return _equals;
	}

	private boolean __hashCodeCalc = false;
	public synchronized int hashCode() {
		if (__hashCodeCalc) {
			return 0;
		}
		__hashCodeCalc = true;
		int _hashCode = 1;
		if (getString() != null) {
			for (int i=0;
				i<java.lang.reflect.Array.getLength(getString());
				i++) {
				Object obj = java.lang.reflect.Array.get(getString(), i);
				if (obj != null &&
					!obj.getClass().isArray()) {
					_hashCode += obj.hashCode();
				}
			}
		}
		__hashCodeCalc = false;
		return _hashCode;
	}

}
